import request from '@/utils/request'

// 查询噪音数据列表
export function listNoiseData(query) {
  return request({
    url: '/environment/noiseData/list',
    method: 'get',
    params: query
  })
}

// 查询噪音数据详细
export function getNoiseData(id) {
  return request({
    url: '/environment/noiseData/' + id,
    method: 'get'
  })
}

// 新增噪音数据
export function addNoiseData(data) {
  return request({
    url: '/environment/noiseData',
    method: 'post',
    data: data
  })
}

// 修改噪音数据
export function updateNoiseData(data) {
  return request({
    url: '/environment/noiseData/editById',
    method: 'post',
    data: data
  })
}

// 删除噪音数据
export function delNoiseData(id) {
  return request({
    url: '/environment/noiseData/deleteByIds',
    method: 'post',
    data: {
      ids:id
    }
  })
}
